﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Star.Tools.Excel.Attributes
{
    /// <summary>
    ///  用于控制excel冻结行为的自定义属性。 
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public class FreezeAttribute : Attribute
    {
      
        public FreezeAttribute()
        {
            ColSplit = 0;
            RowSplit = 1;
            LeftMostColumn = 0;
            TopRow = 1;
        }

        /// <summary>
        ///拆分列
        /// </summary>
        public int ColSplit { get; set; }

        /// <summary>
        /// 行
        /// </summary>
        public int RowSplit { get; set; }

        /// <summary>
        /// 左边列索引
        /// </summary>
        public int LeftMostColumn { get; set; }

        /// <summary>
        /// 上面行索引
        /// </summary>
        public int TopRow { get; set; }
    }
}
